#ifndef ROOM_H
#define ROOM_H

#include"Sensor.h"
#include"List.h"
#include<iostream>

using namespace std;

class Room{
private:
	int RId;                      //each room should have one unique id
	float Temperature;            //those are attributes about environment in the room
    float SmokeDensity;
	float CODensity;
	int WaterLvl;
	int InfraredLvl;
	List<Sensor *> RoomSensors;     //store all kind of sensor placed in the room
public:
	Room();
	Room(int &_RId, float &T, float &S, float &C, int &W, int &I);           //****************
	Room(const Room &SourceRoom);
	~Room();
	Room& operator =(const Room &SourceRoom);
	void Clear();
	void RoomSimulation();
	void SetAttribute(float &T, float &S, float &C, int &W, int &I);
	void SetTemperature(float &T);
	void SetSmokeDensity(float &S);
	void SetCODensity(float &C);
	void SetWaterLvl(int &W);
	void SetInfraredLvl(int &I);
	void SetSensor(List<TypeOfSensor> &Component);
	List<Msg> GetMsg();
	bool operator ==(const Room &SampleRoom);
	bool operator !=(const Room &SampleRoom);

};
#endif